package com.denlaku.longan.util;

import lombok.extern.slf4j.Slf4j;

import java.io.Closeable;

/**
 * @author tianx
 */
@Slf4j
public class IoUtil {

    public static void close(Closeable closeable) {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (Exception e) {
                log.error(e.getMessage(), e);
            }
        }
    }

    private IoUtil() {
    }
}
